package training02;

public class Hunter extends Role implements Attack{
    public Hunter() {
    }

    public Hunter(String name, int level) {
        super(name, level);
    }
    public void intro(){
        System.out.println("我是猎人\n");
        super.intro();
    }
    public void hunt(){
        System.out.println("我进行打猎操作");
    }
    @Override
    public void attack(Role role) {
        System.out.println("我是猎人，我向" + role + "发起了攻击");
    }
}
